#!/bin/bash

TMPDIR="/home/ubuntu/shell-learning/tmp_rm/$(date +%F_%H)"
mkdir $TMPDIR
echo "----------------- $TMPDIR"
#
mv $* "$TMPDIR"
echo "Move $* to $TMPDIR"



#TMPDIR="/home/ubuntu/shell-learning/tmp_rm/$(date +%F_%H)"
#
#mkdir -p "$TMPDIR"  # 添加 -p 选项，确保父目录不存在时也能创建
#echo "----------------- $TMPDIR"
#
#mv "$@" "$TMPDIR"  # 使用 "$@" 更安全，处理包含空格的文件名
#echo "Move $* to $TMPDIR"

